.TH std::multimap::count 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::multimap::count \- std::multimap::count

.SH Synopsis
   size_type count( const Key& key ) const; \fB(1)\fP
   template< class K >                      \fB(2)\fP \fI(since C++14)\fP
   size_type count( const K& x ) const;

   Returns the number of elements with key that compares equivalent to the specified
   argument.

   1) Returns the number of elements with key key.
   2) Returns the number of elements with key that compares equivalent to the value x.
   This overload participates in overload resolution only if the qualified-id
   Compare::is_transparent is valid and denotes a type. It allows calling this function
   without constructing an instance of Key.

.SH Parameters

   key - key value of the elements to count
   x   - alternative value to compare to the keys

.SH Return value

   Number of elements with key that compares equivalent to key or x.

.SH Complexity

   Logarithmic in the size of the container plus linear in the number of elements
   found.

.SH Notes

            Feature-test macro           Value    Std               Feature
                                                        Heterogeneous comparison lookup
   __cpp_lib_generic_associative_lookup 201304L \fI(C++14)\fP in associative containers;
                                                        overload \fB(2)\fP

.SH Example

    This section is incomplete
    Reason: no example

.SH See also

   find        finds element with specific key
               \fI(public member function)\fP
   equal_range returns range of elements matching a specific key
               \fI(public member function)\fP

.SH Category:
     * Todo no example
